package com.jungle.mvvm.sample.api;


import com.jungle.mvvm.sample.bean.ArticleBean;
import com.jungle.mvvm.sample.bean.KindBean;
import com.jungle.mvvm.sample.bean.ListBean;
import com.jungle.mvvm.sample.bean.SameBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * @ClassName ProjectApi
 * @Description 项目接口
 * @Author Daniel
 * @Version V1.0.0
 */
public interface ProjectApi {

    @GET("project/tree/json")
    Observable<SameBean<List<KindBean>>> getProjectTree();

    @GET("project/list/{size}/json")
    Observable<ListBean<List<ArticleBean>>> getProjectArticle(@Path("size") int size, @Query("cid") int cid);

}
